<?php /* Smarty version 2.6.19, created on 2009-01-02 12:16:56
         compiled from admin/admin_group.tpl */ ?>
<?php echo '
  <script type="text/javascript">
<!--
function confirmDelete(articleId) {
if (confirm("This will delete this group. Continue?"))
document.location = "admin.php?page=group&action=delete&id=" + articleId;
}
//-->
  </script>
  '; ?>


<h2>Group Manager</h2>
<?php if (( $this->_tpl_vars['action'] != 'edit' ) && ( $this->_tpl_vars['action'] != 'Add' ) && ( $this->_tpl_vars['action'] != 'auth' )): ?>
  <?php if ($this->_tpl_vars['addallowed']): ?><div class="toplinks"><a href="<?php echo $this->_tpl_vars['pagename']; ?>
&amp;action=Add" title="Add Group"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/add.png" alt="Add Group" border="0" /></a>
</div><?php endif; ?>
<?php if ($this->_tpl_vars['numgroups'] > 0): ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center" class="table sortable-onload-2 rowstyle-alt paginate-15" id="sortTable">
<thead>
<tr> 
  <th width="12%" class="smallhead"></th>
  <th class="smallhead">Group Name</th>
</tr>
</thead>
<tbody>
<?php unset($this->_sections['groups']);
$this->_sections['groups']['name'] = 'groups';
$this->_sections['groups']['loop'] = is_array($_loop=$this->_tpl_vars['numgroups']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['groups']['show'] = true;
$this->_sections['groups']['max'] = $this->_sections['groups']['loop'];
$this->_sections['groups']['step'] = 1;
$this->_sections['groups']['start'] = $this->_sections['groups']['step'] > 0 ? 0 : $this->_sections['groups']['loop']-1;
if ($this->_sections['groups']['show']) {
    $this->_sections['groups']['total'] = $this->_sections['groups']['loop'];
    if ($this->_sections['groups']['total'] == 0)
        $this->_sections['groups']['show'] = false;
} else
    $this->_sections['groups']['total'] = 0;
if ($this->_sections['groups']['show']):

            for ($this->_sections['groups']['index'] = $this->_sections['groups']['start'], $this->_sections['groups']['iteration'] = 1;
                 $this->_sections['groups']['iteration'] <= $this->_sections['groups']['total'];
                 $this->_sections['groups']['index'] += $this->_sections['groups']['step'], $this->_sections['groups']['iteration']++):
$this->_sections['groups']['rownum'] = $this->_sections['groups']['iteration'];
$this->_sections['groups']['index_prev'] = $this->_sections['groups']['index'] - $this->_sections['groups']['step'];
$this->_sections['groups']['index_next'] = $this->_sections['groups']['index'] + $this->_sections['groups']['step'];
$this->_sections['groups']['first']      = ($this->_sections['groups']['iteration'] == 1);
$this->_sections['groups']['last']       = ($this->_sections['groups']['iteration'] == $this->_sections['groups']['total']);
?>
<tr valign="top" class="text">
  <td class="text" style="text-align:center;"><?php if ($this->_tpl_vars['editallowed']): ?><a href="<?php echo $this->_tpl_vars['pagename']; ?>
&amp;action=edit&amp;id=<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['id']; ?>
" title="Edit <?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
" ><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/edit.gif" border="0" alt="Edit <?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
"/></a><?php else: ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/edit_grey.gif" border="0" alt="Editing Disabled" title="Editing Disabled" /><?php endif; ?>&nbsp;&nbsp;<a href="<?php echo $this->_tpl_vars['pagename']; ?>
&amp;subpage=groupusers&amp;gid=<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['id']; ?>
" title="View <?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
 Users"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/group.gif" alt="<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
 Users" border="0"/></a>&nbsp;&nbsp;<?php if ($this->_tpl_vars['publishallowed']): ?><a href="<?php echo $this->_tpl_vars['pagename']; ?>
&amp;action=auth&amp;id=<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['id']; ?>
" title="<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
 access rights" ><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/key.png" alt="<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
 access rights"border="0"/></a><?php else: ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/key_grey.gif" border="0" alt="Editing of access rights Disabled" title="Editing of access rights Disabled" /><?php endif; ?>&nbsp;&nbsp;<?php if ($this->_tpl_vars['deleteallowed']): ?><a href="javascript:confirmDelete(<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['id']; ?>
)" title="Delete <?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/delete.gif" border="0" alt="Delete <?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
" /></a><?php else: ?><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/delete_grey.gif" border="0" alt="Deleting Disabled" title="Deleting Disabled" /><?php endif; ?></td>
  <td class="text"><span class="hintanchor" title="Information :: &lt;b&gt;Group Site:&lt;/b&gt; <?php if (( $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['ispublic'] == 1 )): ?>Yes<?php else: ?>No<?php endif; ?><?php if ($this->_tpl_vars['groups'][$this->_sections['groups']['index']]['getpoints'] != '0'): ?>&lt;br /&gt;&lt;b&gt;Points:&lt;/b&gt; <?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['points']; ?>
<?php endif; ?>"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/information.png" alt="[?]"/></span><?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
</td>
</tr>
<?php endfor; endif; ?>
</tbody>
</table>
<?php else: ?>
<div align="center">No groups</div>
<?php endif; ?>
<?php elseif (( $this->_tpl_vars['action'] == 'edit' || $this->_tpl_vars['action'] == 'Add' )): ?>
<div align="center">
<form name="form1" method="post"  onsubmit="return checkForm([['name','text',true,0,0,'']]);">
<fieldset class="formlist">
<legend><?php if ($this->_tpl_vars['action'] == 'edit'): ?>Edit<?php else: ?>New<?php endif; ?> Group</legend>
<div class="field">
<label for="name" class="label">Name<span class="hintanchor" title="Name of the group."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
<div class="inputboxwrapper"><input name="name" type="text" id="name" size="55" maxlength="50" value="<?php echo $this->_tpl_vars['group']['teamname']; ?>
" class="inputbox" onblur="checkElement('name', 'text', true, 0, 0, '');" /><br /><span class="fieldError" id="nameError">Required</span></div><br />

<span class="label">Group Site<span class="hintanchor" title="Activate sub site for this group."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
<div class="inputboxwrapper"><input type="radio" name="publicgroup" id="publicgroup:yes" value="1" <?php if ($this->_tpl_vars['group']['ispublic'] == 1): ?>checked<?php endif; ?>/><label for="publicgroup:yes">Yes</label>
    <input type="radio" name="publicgroup" id="publicgroup:no" value="0" <?php if ($this->_tpl_vars['group']['ispublic'] == 0): ?>checked<?php endif; ?>/><label for="publicgroup:no">No</label></div><br />

<span class="label"><?php echo $this->_tpl_vars['scoutlang']['patrol']; ?>
<span class="hintanchor" title="Is this group a <?php echo $this->_tpl_vars['scoutlang']['patrol']; ?>
."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
<div class="inputboxwrapper"><input type="radio" name="patrol" id="patrol:yes" value="1" <?php if ($this->_tpl_vars['group']['ispatrol'] == 1): ?>checked<?php endif; ?> /><label for="patrol:yes">Yes</label>
        <input type="radio" name="patrol" id="patrol:no" value="0" <?php if ($this->_tpl_vars['group']['ispatrol'] == 0): ?>checked<?php endif; ?> /><label for="patrol:no">No</label></div><br />


<span class="label">Points<span class="hintanchor" title="Can this group receive points."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></span>
<div class="inputboxwrapper"><input type="radio" name="points" id="points:yes" value="1" <?php if ($this->_tpl_vars['group']['getpoints'] == 1): ?>checked<?php endif; ?> /><label for="points:yes">Yes</label>
        <input type="radio" name="points" id="points:no" value="0" <?php if ($this->_tpl_vars['group']['getpoints'] == 0): ?>checked<?php endif; ?> /><label for="points:no">No</label></div><br />

    <?php if ($this->_tpl_vars['numgroups'] > 0): ?>
    <label for="name" class="label">Copy Permissions<span class="hintanchor" title="You can copy the permissions from another group here. This will overwrite any permissions this group may already have."><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/help.png" alt="[?]"/></span></label>
    <div class="inputboxwrapper"><select name="permissions" id="permissions" class="inputbox">
    <option value="0" selected="selected">Don't copy permissions</option>
    <?php unset($this->_sections['groups']);
$this->_sections['groups']['name'] = 'groups';
$this->_sections['groups']['loop'] = is_array($_loop=$this->_tpl_vars['numgroups']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['groups']['show'] = true;
$this->_sections['groups']['max'] = $this->_sections['groups']['loop'];
$this->_sections['groups']['step'] = 1;
$this->_sections['groups']['start'] = $this->_sections['groups']['step'] > 0 ? 0 : $this->_sections['groups']['loop']-1;
if ($this->_sections['groups']['show']) {
    $this->_sections['groups']['total'] = $this->_sections['groups']['loop'];
    if ($this->_sections['groups']['total'] == 0)
        $this->_sections['groups']['show'] = false;
} else
    $this->_sections['groups']['total'] = 0;
if ($this->_sections['groups']['show']):

            for ($this->_sections['groups']['index'] = $this->_sections['groups']['start'], $this->_sections['groups']['iteration'] = 1;
                 $this->_sections['groups']['iteration'] <= $this->_sections['groups']['total'];
                 $this->_sections['groups']['index'] += $this->_sections['groups']['step'], $this->_sections['groups']['iteration']++):
$this->_sections['groups']['rownum'] = $this->_sections['groups']['iteration'];
$this->_sections['groups']['index_prev'] = $this->_sections['groups']['index'] - $this->_sections['groups']['step'];
$this->_sections['groups']['index_next'] = $this->_sections['groups']['index'] + $this->_sections['groups']['step'];
$this->_sections['groups']['first']      = ($this->_sections['groups']['iteration'] == 1);
$this->_sections['groups']['last']       = ($this->_sections['groups']['iteration'] == $this->_sections['groups']['total']);
?>
        <?php if ($this->_tpl_vars['group']['id'] != $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['id']): ?><option value="<?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['groups'][$this->_sections['groups']['index']]['teamname']; ?>
</option><?php endif; ?>
    <?php endfor; endif; ?>
    </select></div><br />
    <?php endif; ?>

    </div>
    <div class="submitWrapper"><input type="submit" name="Submit" value="Submit" class="button" />
    <input name="Cancel" type="button" id="Cancel" value="Cancel" onclick="history.go(-1);" class="button" />
    </div>
    </fieldset>
</form>
</div>
<?php elseif ($this->_tpl_vars['action'] == 'auth'): ?>
  <script type="text/javascript">
   <?php echo '
   function all(utype, thingy)
   {
      if (document.getElementById(utype + thingy).checked == true)
      {
       '; ?>
 
        <?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
            if (document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_' + thingy).disabled==false)
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_' + thingy).checked=true;
        <?php endfor; endif; ?>
        <?php echo '
      }
      else if (document.getElementById(utype + thingy).checked == false)
      {
       '; ?>
 
        <?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
            document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_' + thingy).checked=false;
        <?php endfor; endif; ?>
        <?php echo '
      }
   }
   '; ?>

   <?php echo '
   function disable(utype)
   {
      if (document.getElementById(utype + "_adminpanel").checked == true)
      {
       '; ?>
 
        <?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access').disabled=false;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add').disabled=false;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit').disabled=false;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete').disabled=false;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub').disabled=false;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit').disabled=false;
            <?php endif; ?>
            document.getElementById(utype + 'access').disabled=false;
            document.getElementById(utype + 'add').disabled=false;
            document.getElementById(utype + 'edit').disabled=false;
            document.getElementById(utype + 'delete').disabled=false;
            document.getElementById(utype + 'pub').disabled=false;
            document.getElementById(utype + 'limit').disabled=false;
        <?php endfor; endif; ?>
        <?php echo '
      }
      else if (document.getElementById(utype + "_adminpanel").checked == false)
      {
       '; ?>
 
        <?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access').disabled=true;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add').disabled=true;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit').disabled=true;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete').disabled=true;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub').disabled=true;
            <?php endif; ?>
            <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] != 'notused'): ?>
                document.getElementById(utype + '_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit').disabled=true;
            <?php endif; ?>
            document.getElementById(utype + 'access').disabled=true;
            document.getElementById(utype + 'add').disabled=true;
            document.getElementById(utype + 'edit').disabled=true;
            document.getElementById(utype + 'delete').disabled=true;
            document.getElementById(utype + 'pub').disabled=true;
            document.getElementById(utype + 'limit').disabled=true;
        <?php endfor; endif; ?>
        <?php echo '
      }
   }
   '; ?>

  </script>
<form name="form1" method="post" action="<?php echo $this->_tpl_vars['editFormAction']; ?>
">
<div align="center"><div class="formlist">
<h2><?php echo $this->_tpl_vars['group']['teamname']; ?>
</h2>
<div id="navcontainer">
<h4 title="normal">Normal User</h4>
<div id="normal" >
<div align="center">
    <input name="user_adminpanel" id="user_adminpanel" type="checkbox" value="1" onclick="disable('user');" <?php if ($this->_tpl_vars['user']['adminpanel'] == 1): ?>checked="checked"<?php endif; ?> />Allow access to administration panel
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" class="table">
    <tr>
        <th class="smallhead">Module</th>
        <th width="10%" class="smallhead">Access Module</th>
        <th width="10%" class="smallhead">Add Items</th>
        <th width="10%" class="smallhead">Edit Items</th>
        <th width="10%" class="smallhead">Delete Items</th>
        <th width="10%" class="smallhead">Publish Items</th>
        <th width="10%" class="smallhead">Limitations</th>
    </tr>
<tr>
    <td class="text"></td>
    <td class="text" style="text-align:center;">
    <label for="useraccess"><input <?php if ($this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="useraccess" onclick="all('user', 'access');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="useradd"><input <?php if ($this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="useradd" onclick="all('user', 'add');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="useredit"><input <?php if ($this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="useredit" onclick="all('user', 'edit');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="userdelete"><input <?php if ($this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="userdelete" onclick="all('user', 'delete');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="userpub"><input <?php if ($this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="userpub" onclick="all('user', 'pub');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="userlimit"><input <?php if ($this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="userlimit" onclick="all('user', 'limit');"/></label>
    </td>
</tr>
<?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
    <?php $this->assign('modid', $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']); ?>
    <tr>
        <td class="text"><div align="right"><?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['name']; ?>
<span class="hintanchor"title="<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['description']; ?>
"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/information.png" alt="[i]"/></span></div></td>
        <td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] == "" || $this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access" id="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access" type="checkbox" value="1" <?php if ($this->_tpl_vars['user']['access'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
        <td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] == "" || $this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add" id="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add" type="checkbox" value="1"  <?php if ($this->_tpl_vars['user']['add'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
        <td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] == "" || $this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit" id="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit" type="checkbox" value="1"  <?php if ($this->_tpl_vars['user']['edit'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
        <td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] == "" || $this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete" id="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete" type="checkbox" value="1"  <?php if ($this->_tpl_vars['user']['delete'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
        <td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] == "" || $this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub" id="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub" type="checkbox" value="1"  <?php if ($this->_tpl_vars['user']['publish'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
        <td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] == "" || $this->_tpl_vars['user']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit" id="user_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit" type="checkbox" value="1"  <?php if ($this->_tpl_vars['user']['limit'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
    </tr>
<?php endfor; endif; ?>
</table>
</div>

<h4 title="assistant">Assistant Group Leader</h4>
<div id="assistant" >
<div align="center">
<input name="ass_adminpanel" id="ass_adminpanel" type="checkbox" value="1" onclick="disable('ass');" <?php if ($this->_tpl_vars['ass']['adminpanel'] == 1): ?>checked="checked"<?php endif; ?>/>Allow access to administration panel
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" class="table">
<tr>
<th class="smallhead">Module</th>
<th width="10%" class="smallhead">Access Module</th>
<th width="10%" class="smallhead">Add Items</th>
<th width="10%" class="smallhead">Edit Items</th>
<th width="10%" class="smallhead">Delete Items</th>
<th width="10%" class="smallhead">Publish Items</th>
<th width="10%" class="smallhead">Limitations</th>
</tr>
<tr>
    <td class="text"></td>
    <td class="text" style="text-align:center;">
    <label for="assaccess"><input <?php if ($this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="assaccess" onclick="all('ass', 'access');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="assadd"><input <?php if ($this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="assadd" onclick="all('ass', 'add');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="assedit"><input <?php if ($this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="assedit" onclick="all('ass', 'edit');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="assdelete"><input <?php if ($this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="assdelete" onclick="all('ass', 'delete');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="asspub"><input <?php if ($this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="asspub" onclick="all('ass', 'pub');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="asslimit"><input <?php if ($this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="asslimit" onclick="all('ass', 'limit');"/></label>
    </td>
</tr>
<?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
<?php $this->assign('modid', $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']); ?>
<tr>
<td class="text"><div align="right"><?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['name']; ?>
<span class="hintanchor"title="<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['description']; ?>
"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/information.png" alt="[i]"/></span></div></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] == "" || $this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access" id="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access" type="checkbox" value="1" <?php if ($this->_tpl_vars['ass']['access'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] == "" || $this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add" id="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add" type="checkbox" value="1"  <?php if ($this->_tpl_vars['ass']['add'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] == "" || $this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit" id="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit" type="checkbox" value="1"  <?php if ($this->_tpl_vars['ass']['edit'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] == "" || $this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete" id="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete" type="checkbox" value="1"  <?php if ($this->_tpl_vars['ass']['delete'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] == "" || $this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub" id="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub" type="checkbox" value="1"  <?php if ($this->_tpl_vars['ass']['publish'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] == "" || $this->_tpl_vars['ass']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit" id="ass_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit" type="checkbox" value="1"  <?php if ($this->_tpl_vars['ass']['limit'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
</tr>
<?php endfor; endif; ?>
</table>
</div>

<h4 title="leader">Group Leader</h4>
<div id="leader" >
<div align="center">
<input name="gpl_adminpanel" id="gpl_adminpanel" type="checkbox" value="1" onclick="disable('gpl');" <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 1): ?>checked="checked"<?php endif; ?>/>Allow access to administration panel
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" class="table">
<tr>
<th class="smallhead">Module</th>
<th width="10%" class="smallhead">Access Module</th>
<th width="10%" class="smallhead">Add Items</th>
<th width="10%" class="smallhead">Edit Items</th>
<th width="10%" class="smallhead">Delete Items</th>
<th width="10%" class="smallhead">Publish Items</th>
<th width="10%" class="smallhead">Limitations</th>
</tr>
<tr>
    <td class="text"></td>
    <td class="text" style="text-align:center;">
    <label for="gplaccess"><input <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="gplaccess" onclick="all('gpl', 'access');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="gpladd"><input <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="gpladd" onclick="all('gpl', 'add');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="gpledit"><input <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="gpledit" onclick="all('gpl', 'edit');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="gpldelete"><input <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="gpldelete" onclick="all('gpl', 'delete');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="gplpub"><input <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="gplpub" onclick="all('gpl', 'pub');"/></label>
    </td>
    <td class="text" style="text-align:center;">
    <label for="gpllimit"><input <?php if ($this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> type="checkbox" value="1" id="gpllimit" onclick="all('gpl', 'limit');"/></label>
    </td>
</tr>
<?php unset($this->_sections['module']);
$this->_sections['module']['name'] = 'module';
$this->_sections['module']['loop'] = is_array($_loop=$this->_tpl_vars['nummodules']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['module']['show'] = true;
$this->_sections['module']['max'] = $this->_sections['module']['loop'];
$this->_sections['module']['step'] = 1;
$this->_sections['module']['start'] = $this->_sections['module']['step'] > 0 ? 0 : $this->_sections['module']['loop']-1;
if ($this->_sections['module']['show']) {
    $this->_sections['module']['total'] = $this->_sections['module']['loop'];
    if ($this->_sections['module']['total'] == 0)
        $this->_sections['module']['show'] = false;
} else
    $this->_sections['module']['total'] = 0;
if ($this->_sections['module']['show']):

            for ($this->_sections['module']['index'] = $this->_sections['module']['start'], $this->_sections['module']['iteration'] = 1;
                 $this->_sections['module']['iteration'] <= $this->_sections['module']['total'];
                 $this->_sections['module']['index'] += $this->_sections['module']['step'], $this->_sections['module']['iteration']++):
$this->_sections['module']['rownum'] = $this->_sections['module']['iteration'];
$this->_sections['module']['index_prev'] = $this->_sections['module']['index'] - $this->_sections['module']['step'];
$this->_sections['module']['index_next'] = $this->_sections['module']['index'] + $this->_sections['module']['step'];
$this->_sections['module']['first']      = ($this->_sections['module']['iteration'] == 1);
$this->_sections['module']['last']       = ($this->_sections['module']['iteration'] == $this->_sections['module']['total']);
?>
<?php $this->assign('modid', $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']); ?>
<tr>
<td class="text"><div align="right"><?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['name']; ?>
<span class="hintanchor" title="<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['description']; ?>
"><img src="<?php echo $this->_tpl_vars['tempdir']; ?>
admin/images/information.png" alt="[i]"/></span></div></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['access'] == "" || $this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access" id="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_access" type="checkbox" value="1" <?php if ($this->_tpl_vars['gpl']['access'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['add'] == "" || $this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add" id="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_add" type="checkbox" value="1"  <?php if ($this->_tpl_vars['gpl']['add'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['edit'] == "" || $this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit" id="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_edit" type="checkbox" value="1"  <?php if ($this->_tpl_vars['gpl']['edit'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['delete'] == "" || $this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete" id="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_delete" type="checkbox" value="1"  <?php if ($this->_tpl_vars['gpl']['delete'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['publish'] == "" || $this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub" id="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_pub" type="checkbox" value="1"  <?php if ($this->_tpl_vars['gpl']['publish'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
<td class="text" style="text-align:center;"><input <?php if ($this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] == 'notused' || $this->_tpl_vars['modules'][$this->_sections['module']['index']]['limit'] == "" || $this->_tpl_vars['gpl']['adminpanel'] == 0): ?>disabled="disabled"<?php endif; ?> name="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit" id="gpl_<?php echo $this->_tpl_vars['modules'][$this->_sections['module']['index']]['id']; ?>
_limit" type="checkbox" value="1"  <?php if ($this->_tpl_vars['gpl']['limit'][$this->_tpl_vars['modid']] == 1): ?>checked="checked"<?php endif; ?>/></td>
</tr>
<?php endfor; endif; ?>
</table>
</div></div>
    <div align="center"><input type="submit" name="Submit" value="Submit" class="button" />
    <input name="Cancel" type="button" id="Cancel" value="Cancel" onclick="window.location='<?php echo $this->_tpl_vars['pagename']; ?>
'" class="button" />
    </div>

</div></div></form>
<?php endif; ?>